<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>吉车惠后台管理系统</title>
	<%@include file="/global/global-other.jsp" %>
	<script type="text/javascript">

	$(function() {

		submitForm = function($dialog){
			$('#sys_personnel_form').form('submit',{
				url:'${ctx}/system/main/updatePersonnel',
				queryParams:{_m:'exec'},
                onSubmit:function(){
                    //return $(this).form('enableValidation').form('validate');
                	if($(this).form('enableValidation').form('validate')){
						return true;
					}else{
						return false;
					}
                },
                success:function(data){
					var json =  eval("(" +data+ ")");
					if(statusMsg(json)){
						parent.$.messager.alert("提示","保存成功！","info",function(){
							$dialog.dialog('destroy');
						});
					}
			    }
            });
		};
		
	});
	</script>
</head>
<body>
<div class="form-box">
	<div class="form-body">
		<form role="form" method="POST" name="sys_personnel_form" id="sys_personnel_form" class="easyui-form form form-horizontal" data-options="novalidate:true">
			<input type="hidden" id="adminId" name="adminId" value="${sysPersonnelEntity.adminId}"/>
			<div class="seg-title">
				<div class="seg-title-box">
					<ul>
						<li class="seg-title-box-icon" ><img src="${ctx }/assets/images/communication.gif"/></li>
						<li class="seg-title-box-text">基本信息</li>
					</ul>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">姓名：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="name" name="name" value="${sysPersonnelEntity.name}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="length[1,20]">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">性别：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="sex" name="sex" value="${sysPersonnelEntity.sex}" class="form-control easyui-combobox" style="width:100%;height:34px;line-height:34px;" required="required" data-options="
                    valueField: 'label',
                    textField: 'value',
                    data: [{
                        label: '1',
                        value: '男'
                    },{
                        label: '2',
                        value: '女'
                    }],editable:false" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">出生日期：</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="birthday" name="birthday" value="<fmt:formatDate value="${sysPersonnelEntity.birthday}" pattern="yyyy-MM-dd"/>" value="" class="form-control easyui-datebox" data-options="editable:false" style="width:100%;height:34px;line-height:34px;" >
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">手机号：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="phone" name="phone" value="${sysPersonnelEntity.phone}"  class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="length[1,20]">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">QQ：</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="qq" name="qq" value="${sysPersonnelEntity.qq}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" validType="length[1,20]">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">email：</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="email" name="email" value="${sysPersonnelEntity.email}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" validType="length[1,50]">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">住址：</p>
				</label>
				<div class="col-sm-8">
					<input type="text" id="address" name="address" value="${sysPersonnelEntity.address}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" validType="length[1,100]">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">备注：</p>
				</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" class="autosize form-control" validType="length[1,100]">${sysPersonnelEntity.remark}</textarea>
				</div>
			</div>
		</form>
	</div>
</div>
</body>
</html>